package com.atomy.bigeventsservice.service.impl;

import com.atomy.bigeventsservice.entity.Category;
import com.atomy.bigeventsservice.map.CategoryMapper;
import com.atomy.bigeventsservice.service.CategoryServer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

@Service
public class CategoryServerImpl implements CategoryServer {
    @Autowired
    private CategoryMapper categoryMapper;
    @Override
    public List<Category> getCategoryById(Integer id) {

        return categoryMapper.selectById(id);
    }
}
